package Agency.views;
import java.awt.Button;
import java.awt.Color;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JTextField;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author wangari
 */
public class DeleteTenantView extends javax.swing.JFrame {

    /**
     * Creates new form DeleteTenantView and sets the background color to gray
     */
    public DeleteTenantView() {
        this.getContentPane().setBackground(Color.LIGHT_GRAY);
        initComponents();
        setLocationRelativeTo(null);
    }
    /**
     * TextField to get the tenant id number
     * @return 
     */
    public JTextField getTheIdNo(){
        return jTIdNo;
    }
    /**
     * TextField to show the tenant name
     * @return jTName
     */
    public JTextField getTheName(){
        return jTName;
    }
    /**
     * TextField  to  show the tenant phone number
     * @return jTPhoneNumber
     */
     public JTextField getThePhoneNum(){
        return jTPhoneNumber;
    }
     /**
      * ComboBox to get the tenant house type
      * @return jCBHouseType
      */
      public JComboBox getTheHseType(){
        return jCBHouseType;
    }
      /**
       * TextField to get the house id
       * @return  jTHouseId
       */
         
     public JTextField getTheHseId(){
        return jTHouseId;
    }
     /**
      * ComboBox to show the town
      * @return jCBTown
      */    
    public JComboBox getTheTown(){
        return jCBTown;
    }
     /**
      * ComboBox to show the gender
      * @return jCBGender
      */    
    public JComboBox getTheGender(){
        return jCBGender;
    }
     /**
      * TextField to show tenants occupation
      * @return jTOccupation
      */    
    public JTextField getTheOccupation(){
        return jTOccupation;
    }
    /**
     * button to search for the tenant
     * @return jBSearch
     */
    public JButton searchTenant(){
      return jBSearch;
    }
    /**
     * button to delete the tenant
     * @return jBDelete
     */
    public JButton deleteTenant(){
        return jBDelete;
    }
    /**
     * TextField to  show the plot number
     * @return jTPlotNum
     */
    public JTextField getThePlotNum(){
        return jTPlotNum;
    }
    /**
     * Button to close the view
     * @return jBClose
     */
    public JButton close(){
        return jBClose;
    }
         
                      
            
            

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        jLIdNo = new javax.swing.JLabel();
        jLName = new javax.swing.JLabel();
        jLPhoneNumber = new javax.swing.JLabel();
        jLHouseType = new javax.swing.JLabel();
        jLHouseId = new javax.swing.JLabel();
        jLTown = new javax.swing.JLabel();
        jLGender = new javax.swing.JLabel();
        jLOccupation = new javax.swing.JLabel();
        jTIdNo = new javax.swing.JTextField();
        jTName = new javax.swing.JTextField();
        jTPhoneNumber = new javax.swing.JTextField();
        jCBHouseType = new javax.swing.JComboBox();
        jTHouseId = new javax.swing.JTextField();
        jCBTown = new javax.swing.JComboBox();
        jCBGender = new javax.swing.JComboBox();
        jTOccupation = new javax.swing.JTextField();
        jBDelete = new javax.swing.JButton();
        jBSearch = new javax.swing.JButton();
        jBClose = new javax.swing.JButton();
        jLabel2 = new javax.swing.JLabel();
        jTPlotNum = new javax.swing.JTextField();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jLabel1.setText("Delete Tenant");

        jLIdNo.setText("Id No/Passport No");

        jLName.setText("Name");

        jLPhoneNumber.setText("Phone Number");

        jLHouseType.setText("House Type");

        jLHouseId.setText("House Id");

        jLTown.setText("Town");

        jLGender.setText("Gender");

        jLOccupation.setText("Occupation");

        jTIdNo.setColumns(25);

        jTName.setColumns(25);

        jTPhoneNumber.setColumns(25);

        jCBHouseType.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Apartments", "3 Bedroom", "2 Bedroom", "1 Bedroom", "Bedsitter", "Singleroom" }));

        jTHouseId.setColumns(25);

        jCBTown.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Accra", "Madina", "Kwabenya", "Comet", "East Legon", "Dzorwulu", "Lapaz", "Ridge", "Airport Residential" }));

        jCBGender.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "F", "M" }));

        jTOccupation.setColumns(25);
        jTOccupation.setToolTipText("");

        jBDelete.setText("Delete");

        jBSearch.setText("Click to Enter Tenant Id No to delete");

        jBClose.setText("Close");

        jLabel2.setText("House Plot Number");

        jTPlotNum.setColumns(20);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addGap(0, 0, Short.MAX_VALUE)
                        .addComponent(jBDelete, javax.swing.GroupLayout.PREFERRED_SIZE, 77, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(133, 133, 133)
                        .addComponent(jBClose)
                        .addGap(49, 49, 49))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addComponent(jLIdNo)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jTIdNo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(194, 194, 194))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(202, 202, 202)
                        .addComponent(jBSearch, javax.swing.GroupLayout.PREFERRED_SIZE, 255, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLPhoneNumber)
                    .addComponent(jLHouseType)
                    .addGroup(layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLOccupation)
                            .addComponent(jLTown)
                            .addComponent(jLName)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                .addComponent(jLHouseId)
                                .addComponent(jLGender))))
                    .addComponent(jLabel2))
                .addGap(201, 201, 201)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jLabel1)
                    .addComponent(jTName)
                    .addComponent(jTPhoneNumber)
                    .addComponent(jTHouseId)
                    .addComponent(jTOccupation)
                    .addComponent(jCBHouseType, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jCBTown, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jCBGender, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jTPlotNum))
                .addGap(27, 197, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jLabel1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jBSearch)
                .addGap(27, 27, 27)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTIdNo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLIdNo))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 46, Short.MAX_VALUE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLName))
                .addGap(26, 26, 26)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTPhoneNumber, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLPhoneNumber))
                .addGap(27, 27, 27)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jCBHouseType, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLHouseType))
                .addGap(23, 23, 23)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel2)
                    .addComponent(jTPlotNum, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(24, 24, 24)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTHouseId, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLHouseId))
                .addGap(26, 26, 26)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jCBTown, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLTown))
                .addGap(27, 27, 27)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jCBGender, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLGender, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTOccupation, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLOccupation))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jBDelete)
                    .addComponent(jBClose))
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

   


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jBClose;
    private javax.swing.JButton jBDelete;
    private javax.swing.JButton jBSearch;
    private javax.swing.JComboBox jCBGender;
    private javax.swing.JComboBox jCBHouseType;
    private javax.swing.JComboBox jCBTown;
    private javax.swing.JLabel jLGender;
    private javax.swing.JLabel jLHouseId;
    private javax.swing.JLabel jLHouseType;
    private javax.swing.JLabel jLIdNo;
    private javax.swing.JLabel jLName;
    private javax.swing.JLabel jLOccupation;
    private javax.swing.JLabel jLPhoneNumber;
    private javax.swing.JLabel jLTown;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JTextField jTHouseId;
    private javax.swing.JTextField jTIdNo;
    private javax.swing.JTextField jTName;
    private javax.swing.JTextField jTOccupation;
    private javax.swing.JTextField jTPhoneNumber;
    private javax.swing.JTextField jTPlotNum;
    // End of variables declaration//GEN-END:variables
}
